-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: API v3 Page update #9053
fix: API v3 Page update #9053
Conversation
|
apps/app/src/server/models/page.ts
Outdated
if (pageData.grantedGroups.length > 0) { | ||
pageData.grantedGroups = pageData.grantedGroups.map(group => ({ | ||
...group, | ||
_id: newRevision._id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
growi の gui で grant を 5 にしたとき ( group に所属しているときのみ閲覧可 ) のときの pageData.grantedGroups の形に合わせました。
reg-suit detected visual differences. Check this report, and review them. 🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴 🔵🔵🔵 What do the circles mean?The number of circles represent the number of changed images.🔴 : Changed items, ⚪ : New items, ⚫ : Deleted items, and 🔵 Passed items How can I change the check status?If reviewers approve this PR, the reg context status will be green automatically. |
task: https://redmine.weseek.co.jp/issues/153149
farai 追記)
失敗していた原因
id
メソッドはインスタンスに存在するが、access_token を使った API を直接叩く方法だと、id
メソッドが取り除かれる:growi/apps/app/src/server/middlewares/access-token-parser.js
Line 29 in d7935a6